package recycle.impl;

import org.springframework.stereotype.Service;
import recycle.dao.AdminMapper;
import recycle.dao.MaintenanceMapper;
import recycle.pojo.Admin;
import recycle.pojo.Maintenance;
import recycle.service.MaintenanceService;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@Service
public class MaintenanceServiceImpl implements MaintenanceService {
    @Resource
    private MaintenanceMapper maintenanceMapper;


    @Override
    public Maintenance findById(Maintenance orderId) {
        return maintenanceMapper.findById(orderId);
    }

    @Override
    public List<Maintenance> findAll() {
        return maintenanceMapper.findAll();
    }

    @Override
    public int save(Maintenance maintenance) {
        return maintenanceMapper.save(maintenance);
    }

    @Override
    public int delete(Maintenance orderId) {
        return maintenanceMapper.delete(orderId);
    }

    @Override
    public int update(Maintenance maintenance) {
        return maintenanceMapper.update(maintenance);
    }
}
